<?php

/*
	Class: Commerce_Plugins_Routes

	About: Author
		Rich Joslin

	About: License
		<http://communit.as/docs/license>
*/
class Commerce_Plugins_Routes {

	/* Group: Constructors */

	/*
		Function: __construct
	*/
	function __construct() {
	}

	/* Group: Instance Methods */

	/*
		Function: addRoutes
	*/
	function addRoutes($params) {
		$router = $params['router'];
		$basepath = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], "/"));
		$routes = new Zend_Config_Ini($basepath.'/modules/commerce/module.ini', 'routes');
		$router->addConfig($routes, 'routes');
	}

}
